How to implement Lists sorted( ) function in Python |Part -1|